import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
// 引入字体的文件
import './assets/iconfont/iconfont.css'
// 引入全局的样式文件
import './assets/css/global.css'


const app = createApp(App)
app.use(store).use(router).mount('#app')

// 请求基准路径的配置
axios.defaults.baseURL = 'http://localhost:8000/charts/'
// 将axios挂载到全局
import axios from 'axios'
app.config.globalProperties.$axios = axios